/*
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2025-07-02 21:37:05
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2025-07-03 22:50:20
 * @FilePath: /book-manage-angular/src/app/app.routes.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Routes } from '@angular/router';
import { LayoutComponent } from './layout/layout.component';

import { LoginComponent } from './pages/login/login.component';
import { HomeComponent } from './pages/home/home.component';

import { BookDetailComponent } from './pages/book-detail/book-detail.component';
import { BookListComponent } from './pages/book-list/book-list.component';
import { OrderProcessComponent } from './pages/order-process/order-process.component';
import { InventoryListComponent } from './pages/inventory-list/inventory-list.component';
import { NestedListComponent } from './pages/nested-list/nested-list.component';

export const routes: Routes = [
  { path: 'login', component: LoginComponent },
  {
    path: '',
    component: LayoutComponent,
    children: [
      { path: '', pathMatch: 'full', redirectTo: '/home' },
      { path: 'home', component: HomeComponent },
      { path: 'book/:bookId', component: BookDetailComponent },
      { path: 'books', component: BookListComponent },
      { path: 'order', component: OrderProcessComponent },
      { path: 'inventory', component: InventoryListComponent },
      { path: 'catalog', component: NestedListComponent },

    ],
  },


];
